package liang.jiaxin.com.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Jrxsr
 * @since 2019-04-13
 */
@ApiModel("")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Bbs extends Model<Bbs> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键id
     */
    @ApiModelProperty(value = "自增主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 条目标题
     */
    @ApiModelProperty(value = "条目标题")
    private String title;
    /**
     * 条目内容
     */
    @ApiModelProperty(value = "条目内容")
    private String content;
    /**
     * 对应资源表
     */
    @ApiModelProperty(value = "对应资源表")
    @TableField("resourceId")
    private String resourceId;
    /**
     * 显示权限(0.全部可见1.部分可见2.全部不可见)
     */
    @ApiModelProperty(value = "显示权限(0.全部可见1.部分可见2.全部不可见)")
    @TableField("showPermission")
    private Long showPermission;
    /**
     * 当可见为部分可见时对应可见用户id
     */
    @ApiModelProperty(value = "当可见为部分可见时对应可见用户id")
    @TableField("showId")
    private String showId;
    /**
     * 留言表id
     */
    @ApiModelProperty(value = "留言表id")
    @TableField("leaveMessageId")
    private Integer leaveMessageId;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @TableField("createOperator")
    private String createOperator;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField("createDatetime")
    private Date createDatetime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    @TableField("updateOperator")
    private String updateOperator;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField("updateDatetime")
    private Date updateDatetime;


    public static final String ID = "id";

    public static final String TITLE = "title";

    public static final String CONTENT = "content";

    public static final String RESOURCEID = "resourceId";

    public static final String SHOWPERMISSION = "showPermission";

    public static final String SHOWID = "showId";

    public static final String LEAVEMESSAGEID = "leaveMessageId";

    public static final String CREATEOPERATOR = "createOperator";

    public static final String CREATEDATETIME = "createDatetime";

    public static final String UPDATEOPERATOR = "updateOperator";

    public static final String UPDATEDATETIME = "updateDatetime";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
